<?php

class Default_Cron_Default_Download implements Kernel_Filter_Interface
{

	/**
    * Start filter.
    *
    */
    public function process()
	{
		$contents = file_get_contents(Kernel_Config::get('default', 'url'));
		if (!$contents) {
			trigger_error('Can not download file', E_USER_ERROR);
		}

		file_put_contents(Kernel_Config::get('default', 'file'), $contents);
	}

}